<template>
  <view>
    <headerComp></headerComp>
    <!-- 快速入口 -->
    <profileQuickEnter></profileQuickEnter>
    <!-- 快速入口 -->
    <profileAlready :list="alreadyList"></profileAlready>

    <profileEnters></profileEnters>

    <uiFooter copyright="©2020 南京易杰智信息科技有限公司 版权所有"></uiFooter>
  </view>
</template>

<script>
import uiFooter from "@/components/base/footer/index";
import headerComp from "./components/header-user/index";
import profileQuickEnter from "./components/profile-actions";
import profileAlready from "./components/profile-already";
import profileEnters from "./components/profile-enters";

import { allFinishedLesson } from "@/api/order/profile.js";
export default {
  name: "profilePage",
  components: {
    uiFooter,
    headerComp,
    profileQuickEnter,
    profileAlready,
    profileEnters
  },
  data() {
    return {
      alreadyList: []
    };
  },
  created() {
    this.loadAlreadyData();
  },
  mounted() {},
  methods: {
    loadAlreadyData() {
      allFinishedLesson().then(({ respCode, result, respMsg }) => {
        if (respCode == 0) {
          this.alreadyList = result;
        }
      });
    }
  }
};
</script>

<style scoped lang="scss" src="./index.scss">
</style>
